import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
<#list routes![] as route>
    <#if route??>
        {
         path: '${route.path}',
         name: '${route.name}',
         component: () => import('${route.component}')
         <#if route.meta??>,meta: ${route.meta}</#if>
        }<#if route_has_next>,</#if>
    </#if>
</#list>
],
})

export default router